package com.quwan.common.exception;


import lombok.AllArgsConstructor;
import lombok.Getter;
import net.bytebuddy.implementation.bytecode.StackManipulation;

@Getter
@AllArgsConstructor
public enum ExpCode {
    PARAMS_ILLEGAL(400, "参数非法"),
    PARAMS_UNKNOWN(400, "未知参数"),
    DATA_ILLEGAL(501, "数据异常"),
    DATA_SELECT_NULL(502, "查询数据结果集null"),
    OPERATE_ERR(599, "错误操作"),
    OPERATE_FAIL(601, "操作失败"),
    PHONE_EXISTS(602, "手机号已进行过绑定"),
    NOT_FOLLOW_SELF(603, "不能关注自己"),
    NOT_BUY_SELF(604, "不能购买自己发布订单"),
    PHONE_IS_BIND(605, "账号已进行过手机绑定"),
    PHONE_CODE_VALID(606,"验证码已发送至您手机,如信号较弱未收到短信,请耐心等待"),
    TRANS_MONEY_NOTSUPORT(607, "提现金额大于可用余额"),
    NOT_SUPPORT_TYPE(608, "不支持的查询类型"),
    ACTIVITY_END(701, "活动已结束"),
    PASSWORD_NOT_SAME(702, "新密码与确认密码不一致"),
    PASSWORD_NOT_OLD(704, "旧密码输入不正确"),
    SYSTEM_NOT_POWER(706, "未有此权限"),
    AUTH_FAIL(710, "认证失败"),
    OPEN_ID_BIND_FAIL(711, "绑定失败"),
    OPEN_ID_BIND_EXIST(712, "账号已经进行过绑定"),
    NOT_BIND_OPEN_ID(713, "未绑定提现账号,请前往个人设置 账号绑定 进行绑定"),
    AUTH_EXISTS(714, "已认证"),
    LOGIN_VCODE_MAX(900, "当天验证码次数上限"),
    LOGIN_VCODE_ERR(901, "验证码错误"),
    LOGIN_VCODE_EXPIRE(902, "验证码过期"),
    LOGIN_ERR(903, "账号密码错误"),
    LOGIN_AUTH_ERR(904, "未认证用户"),
    LOGIN_MOBILE_ERR(910, "手机号码输入有误"),
    LOGIN_TOKEN_EXPIRED(911, "登录信息过期"),
    LOGIN_INFO_ERR(921, "登录信息异常"),
    LOGIN_GUEST_FAIL(930, "游客登录失败"),
    NEED_LOGIN(931, "请登陆后再操作"),
    LOGIN_FAIL(932, "登录失败,请尝试其他登录方式"),
    MEMBER_NOT_EXIST(950, "会员不存在"),
    MEMBER_NOT_SAME(951, "操作用户不是当前登录用户"),
    PASSWORD_EXISTS(960, "密码已存在"),
    PASSWORD_NOT_MATCHES(961, "旧密码错误"),
    PASSWORD_SAME(962, "与原密码一致"),
    PASSWORD_ERR(963, "登录密码不正确"),
    PAY_NOT_SUPPORT(1000, "不支持的支付类型"),
    PAY_ORDER_ERR(1001, "支付订单异常"),
    PAY_TIME_OUT(1002, "支付超时"),
    PAY_BALANCE_LESS(1003, "支付余额不足"),
    PAY_PASSWORD_NOT_MATCHES(1004, "支付密码不正确"),
    PAY_BALANCE_FAIL(1005, "支付异常,请重新支付 或选其他支付方式"),
    ORDER_CANCEL_MAX(1100, "当天取消订单次数上限 普通用户限2次"),
    ORDER_NOT_EXIST(1101, "订单不存在"),
    ORDER_INFO_ERR(1102, "订单异常"),
    APPLY_MEMBER_EXP(1103, "接单人信息异常,请选择其他接单人"),
    ORDER_TIME_LILMIT_NOT_SUPPORT_CANCEL(1104, "订单已进入开始时间,不允许取消."),
    ORDER_STATUS_NOT_SPORT_CANCEL(1104,"当前订单状态不可取消"),
    ORDER_STATUS_EXP(1105, "订单状态异常,请刷新后重试！"),
    ORDER_STATUS_UN_UPD(1106, "订单当前状态不允许被修改！"),
    PUBLISH_ORDER_LIMIT(1107, "今天已发布订单,不可再发布.！"),
    WX_USER_INFO_REQUEST_FAIL(1210, "wx获取用户信息请求失败"),
    WX_USER_INFO_ERR(1211, "wx获取用户信息失败"),
    WX_OAUTH2_REQUEST_FAIL(1221, "wx授权请求失败"),
    WX_OAUTH2_ERR(1222, "wx授权信息获取失败"),
    AUTH_CODE_FAIL(1223, "code解析失败"),
    PHONE_REGISTER_FAIL(1224, "手机注册失败"),
    ACCOUNT_DISABLED(1225, "账号已被禁用，请联系客服咨询"),
    LOGOUT_BALANCE_LIMIT(1226, "注销失败:存在余额未使用"),
    LOGOUT_ORDER_LIMIT(1227, "注销失败:存在未完成订单"),
    TRANS_MONEY_LIMIT(1228, "提现金额需大于等于20元小于等于5000元"),
    DB_UPDATE_ERR(2001, "数据更新与预期不符"),
    FIST_LOGIN(3333, "用户首次登录"),
    TOKEN_NEED_REFRESH(8000, "令牌过期需刷新");

    int code;
    String msg;
}